package com.study.samsung.Service;

import com.study.samsung.Dao.SuccessionDao;
import com.study.samsung.Entity.Succession;

import java.util.List;

public class SuccessionService {
    SuccessionDao sd = new SuccessionDao();
    public List<Succession> selectAll(){
        return sd.selectAll();
    }

    public Integer changename(Integer xid,String xname){
        return sd.changename(xid,xname);
    }

    public Integer addcategory(String xname){
        return sd.addcategory(xname);
    }

    public Integer deladdcategory(Integer xid){
        return sd.deladdcategory(xid);
    }
}
